package com.googlecode.bizyap.core;


/**
 *
 * @author mehmet.dogan
 *
 */
public interface Globals {

	static final String UTF8 = "UTF-8";
	static final String CONFIGURATION_FILE = "bizyap-conf.xml";

	static final String LOGGED_OUT_COOKIE = "_USER_LOGGED_OUT_";
	static final String AUTH_USERNAME_TAG = "username";

	static final String STANDARD_USER = "STANDARD_USER";
	static final String TOKEN_PARAM = "_tk";
	static final String TARGET_URL_PARAM = "targetURL";

	static final String USER_ATTR = "mm.sso.user";
	static final String ROLES_ATTR = "mm.sso.roles";

	static final String PROTOTYPE_XMLHTTPREQUEST_HEADER = "x-requested-with";
	static final String PROTOTYPE_XMLHTTPREQUEST = "XMLHttpRequest";

	static final String AUTHENTICATE_METHOD = "authenticate";
	static final String AUTHORIZE_METHOD = "authorize";

	static final Class[] AUTHENTICATE_METHOD_PARAM = new Class[]{String.class, String.class};
	static final Class[] AUTHORIZE_METHOD_PARAM = new Class[]{java.security.Principal.class};

}
